Optimal. Leaf size=216 \[ -\frac{1}{2} a e \text{PolyLog}\left (2,c^2 x^2\right )+\frac{1}{2} b e \left (-\log \left (1-c^2 x^2\right )+\log (1-c x)+\log (c x+1)\right ) \text{PolyLog}(2,-c x)-\frac{1}{2} b e \left (-\log \left (1-c^2 x^2\right )+\log (1-c x)+\log (c x+1)\right ) \text{PolyLog}(2,c x)-\frac{1}{2} b d \text{PolyLog}(2,-c x)+\frac{1}{2} b d \text{PolyLog}(2,c x)+b e \text{PolyLog}(3,1-c x)-b e \text{PolyLog}(3,c x+1)-b e \log (1-c x) \text{PolyLog}(2,1-c x)+b e \log (c x+1) \text{PolyLog}(2,c x+1)+a d \log (x)-\frac{1}{2} b e \log (c x) \log ^2(1-c x)+\frac{1}{2} b e \log (-c x) \log ^2(c x+1) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.280181, antiderivative size = 216, normalized size of antiderivative = 1., number of steps used = 14, number of rules used = 9, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {6079, 5912, 6077, 2391, 6075, 2396, 2433, 2374, 6589} \[ -\frac{1}{2} a e \text{PolyLog}\left (2,c^2 x^2\right )+\frac{1}{2} b e \left (-\log \left (1-c^2 x^2\right )+\log (1-c x)+\log (c x+1)\right ) \text{PolyLog}(2,-c x)-\frac{1}{2} b e \left (-\log \left (1-c^2 x^2\right )+\log (1-c x)+\log (c x+1)\right ) \text{PolyLog}(2,c x)-\frac{1}{2} b d \text{PolyLog}(2,-c x)+\frac{1}{2} b d \text{PolyLog}(2,c x)+b e \text{PolyLog}(3,1-c x)-b e \text{PolyLog}(3,c x+1)-b e \log (1-c x) \text{PolyLog}(2,1-c x)+b e \log (c x+1) \text{PolyLog}(2,c x+1)+a d \log (x)-\frac{1}{2} b e \log (c x) \log ^2(1-c x)+\frac{1}{2} b e \log (-c x) \log ^2(c x+1) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6079
Rule 5912
Rule 6077
Rule 2391
Rule 6075
Rule 2396
Rule 2433
Rule 2374
Rule 6589
Rubi steps
\begin{align*} \int \frac{\left (a+b \tanh ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{x} \, dx &=d \int \frac{a+b \tanh ^{-1}(c x)}{x} \, dx+e \int \frac{\left (a+b \tanh ^{-1}(c x)\right ) \log \left (1-c^2 x^2\right )}{x} \, dx\\ &=a d \log (x)-\frac{1}{2} b d \text{Li}_2(-c x)+\frac{1}{2} b d \text{Li}_2(c x)+(a e) \int \frac{\log \left (1-c^2 x^2\right )}{x} \, dx+(b e) \int \frac{\tanh ^{-1}(c x) \log \left (1-c^2 x^2\right )}{x} \, dx\\ &=a d \log (x)-\frac{1}{2} b d \text{Li}_2(-c x)+\frac{1}{2} b d \text{Li}_2(c x)-\frac{1}{2} a e \text{Li}_2\left (c^2 x^2\right )-\frac{1}{2} (b e) \int \frac{\log ^2(1-c x)}{x} \, dx+\frac{1}{2} (b e) \int \frac{\log ^2(1+c x)}{x} \, dx+\left (b e \left (-\log (1-c x)-\log (1+c x)+\log \left (1-c^2 x^2\right )\right )\right ) \int \frac{\tanh ^{-1}(c x)}{x} \, dx\\ &=a d \log (x)-\frac{1}{2} b e \log (c x) \log ^2(1-c x)+\frac{1}{2} b e \log (-c x) \log ^2(1+c x)-\frac{1}{2} b d \text{Li}_2(-c x)+\frac{1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text{Li}_2(-c x)+\frac{1}{2} b d \text{Li}_2(c x)-\frac{1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text{Li}_2(c x)-\frac{1}{2} a e \text{Li}_2\left (c^2 x^2\right )-(b c e) \int \frac{\log (c x) \log (1-c x)}{1-c x} \, dx-(b c e) \int \frac{\log (-c x) \log (1+c x)}{1+c x} \, dx\\ &=a d \log (x)-\frac{1}{2} b e \log (c x) \log ^2(1-c x)+\frac{1}{2} b e \log (-c x) \log ^2(1+c x)-\frac{1}{2} b d \text{Li}_2(-c x)+\frac{1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text{Li}_2(-c x)+\frac{1}{2} b d \text{Li}_2(c x)-\frac{1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text{Li}_2(c x)-\frac{1}{2} a e \text{Li}_2\left (c^2 x^2\right )+(b e) \operatorname{Subst}\left (\int \frac{\log (x) \log \left (c \left (\frac{1}{c}-\frac{x}{c}\right )\right )}{x} \, dx,x,1-c x\right )-(b e) \operatorname{Subst}\left (\int \frac{\log (x) \log \left (-c \left (-\frac{1}{c}+\frac{x}{c}\right )\right )}{x} \, dx,x,1+c x\right )\\ &=a d \log (x)-\frac{1}{2} b e \log (c x) \log ^2(1-c x)+\frac{1}{2} b e \log (-c x) \log ^2(1+c x)-\frac{1}{2} b d \text{Li}_2(-c x)+\frac{1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text{Li}_2(-c x)+\frac{1}{2} b d \text{Li}_2(c x)-\frac{1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text{Li}_2(c x)-\frac{1}{2} a e \text{Li}_2\left (c^2 x^2\right )-b e \log (1-c x) \text{Li}_2(1-c x)+b e \log (1+c x) \text{Li}_2(1+c x)+(b e) \operatorname{Subst}\left (\int \frac{\text{Li}_2(x)}{x} \, dx,x,1-c x\right )-(b e) \operatorname{Subst}\left (\int \frac{\text{Li}_2(x)}{x} \, dx,x,1+c x\right )\\ &=a d \log (x)-\frac{1}{2} b e \log (c x) \log ^2(1-c x)+\frac{1}{2} b e \log (-c x) \log ^2(1+c x)-\frac{1}{2} b d \text{Li}_2(-c x)+\frac{1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text{Li}_2(-c x)+\frac{1}{2} b d \text{Li}_2(c x)-\frac{1}{2} b e \left (\log (1-c x)+\log (1+c x)-\log \left (1-c^2 x^2\right )\right ) \text{Li}_2(c x)-\frac{1}{2} a e \text{Li}_2\left (c^2 x^2\right )-b e \log (1-c x) \text{Li}_2(1-c x)+b e \log (1+c x) \text{Li}_2(1+c x)+b e \text{Li}_3(1-c x)-b e \text{Li}_3(1+c x)\\ \end{align*}
Mathematica [F] time = 0.237389, size = 0, normalized size = 0. \[ \int \frac{\left (a+b \tanh ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{x} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 1.191, size = 1638, normalized size = 7.6 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.46246, size = 205, normalized size = 0.95 \begin{align*} -\frac{1}{2} \,{\left (\log \left (c x\right ) \log \left (-c x + 1\right )^{2} + 2 \,{\rm Li}_2\left (-c x + 1\right ) \log \left (-c x + 1\right ) - 2 \,{\rm Li}_{3}(-c x + 1)\right )} b e + \frac{1}{2} \,{\left (\log \left (c x + 1\right )^{2} \log \left (-c x\right ) + 2 \,{\rm Li}_2\left (c x + 1\right ) \log \left (c x + 1\right ) - 2 \,{\rm Li}_{3}(c x + 1)\right )} b e + a d \log \left (x\right ) - \frac{1}{2} \,{\left (b d - 2 \, a e\right )}{\left (\log \left (c x\right ) \log \left (-c x + 1\right ) +{\rm Li}_2\left (-c x + 1\right )\right )} + \frac{1}{2} \,{\left (b d + 2 \, a e\right )}{\left (\log \left (c x + 1\right ) \log \left (-c x\right ) +{\rm Li}_2\left (c x + 1\right )\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b d \operatorname{artanh}\left (c x\right ) + a d +{\left (b e \operatorname{artanh}\left (c x\right ) + a e\right )} \log \left (-c^{2} x^{2} + 1\right )}{x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \operatorname{atanh}{\left (c x \right )}\right ) \left (d + e \log{\left (- c^{2} x^{2} + 1 \right )}\right )}{x}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \operatorname{artanh}\left (c x\right ) + a\right )}{\left (e \log \left (-c^{2} x^{2} + 1\right ) + d\right )}}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]